package com.aliang.shopping.contact;

/**
 * 基本常量
 */
public interface BasicConstant {

    //默认密码
    String DEFAULT_PASSWORD = "12345678";

    String TOKEN_PREFIX = "shopping:";
    //权限认证
    //请求头名
    String HEADER_NAME = "token";
    //jwt秘钥
    String JWT_KEY = "CodeByALiang";
    //载荷ID
    String PAYLOAD_ID = "id";
    //载荷角色
    String PAYLOAD_ROLE = "role";
    //过期时间（秒）
    long EXPIRE = 7 * 24 * 60 * 60;
    //邮箱登录验证码缓存键
    String EMAIL_LOGIN_KEY = "email:login:";
    //手机登录验证码缓存键
    String PHONE_LOGIN_KEY = "phone:login:";
    //图片登录验证码缓存键
    String IMAGE_LOGIN_KEY = "image:login:";

    //电话ip发送次数缓存键
    String SHOPPING_SEND_PHONE_KEY = "yx_shopping:send_phone_cont:";

    // 公告文本图片链接更改标记
    String REPLACE_IMAGE = "[ALIANG-image]";
}
